.class Lcom/brixd/niceapp/activity/BaseDetailActivity$19$1;
.super Ljava/lang/Object;
.source "BaseDetailActivity.java"

# interfaces
.implements Lretrofit/Callback;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/brixd/niceapp/activity/BaseDetailActivity$19;->onCommentUpClick(Landroid/view/View;Lcom/brixd/niceapp/model/DetailModel;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation

.annotation system Ldalvik/annotation/Signature;
    value = {
        "Ljava/lang/Object;",
        "Lretrofit/Callback",
        "<",
        "Lorg/json/JSONObject;",
        ">;"
    }
.end annotation


# instance fields
.field final synthetic this$1:Lcom/brixd/niceapp/activity/BaseDetailActivity$19;

.field final synthetic val$commentModel:Lcom/brixd/niceapp/model/CommentModel;

.field final synthetic val$view:Landroid/view/View;


# direct methods
.method constructor <init>(Lcom/brixd/niceapp/activity/BaseDetailActivity$19;Landroid/view/View;Lcom/brixd/niceapp/model/CommentModel;)V
    .registers 4
    .param p1, "this$1"    # Lcom/brixd/niceapp/activity/BaseDetailActivity$19;

    .prologue
    .line 764
    iput-object p1, p0, Lcom/brixd/niceapp/activity/BaseDetailActivity$19$1;->this$1:Lcom/brixd/niceapp/activity/BaseDetailActivity$19;

    iput-object p2, p0, Lcom/brixd/niceapp/activity/BaseDetailActivity$19$1;->val$view:Landroid/view/View;

    iput-object p3, p0, Lcom/brixd/niceapp/activity/BaseDetailActivity$19$1;->val$commentModel:Lcom/brixd/niceapp/model/CommentModel;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public failure(Lretrofit/RetrofitError;)V
    .registers 4
    .param p1, "arg0"    # Lretrofit/RetrofitError;

    .prologue
    .line 768
    iget-object v0, p0, Lcom/brixd/niceapp/activity/BaseDetailActivity$19$1;->this$1:Lcom/brixd/niceapp/activity/BaseDetailActivity$19;

    iget-object v0, v0, Lcom/brixd/niceapp/activity/BaseDetailActivity$19;->this$0:Lcom/brixd/niceapp/activity/BaseDetailActivity;

    # getter for: Lcom/brixd/niceapp/activity/BaseDetailActivity;->mDelayHandler:Lcom/brixd/niceapp/util/RequestDelayHandler;
    invoke-static {v0}, Lcom/brixd/niceapp/activity/BaseDetailActivity;->access$1900(Lcom/brixd/niceapp/activity/BaseDetailActivity;)Lcom/brixd/niceapp/util/RequestDelayHandler;

    move-result-object v0

    iget-object v1, p0, Lcom/brixd/niceapp/activity/BaseDetailActivity$19$1;->val$view:Landroid/view/View;

    invoke-virtual {v0, v1}, Lcom/brixd/niceapp/util/RequestDelayHandler;->endRequest(Ljava/lang/Object;)V

    .line 769
    return-void
.end method

.method public bridge synthetic success(Ljava/lang/Object;Lretrofit/client/Response;)V
    .registers 3

    .prologue
    .line 764
    check-cast p1, Lorg/json/JSONObject;

    invoke-virtual {p0, p1, p2}, Lcom/brixd/niceapp/activity/BaseDetailActivity$19$1;->success(Lorg/json/JSONObject;Lretrofit/client/Response;)V

    return-void
.end method

.method public success(Lorg/json/JSONObject;Lretrofit/client/Response;)V
    .registers 9
    .param p1, "arg0"    # Lorg/json/JSONObject;
    .param p2, "arg1"    # Lretrofit/client/Response;

    .prologue
    const/4 v5, 0x0

    .line 773
    const-string v3, "up_times"

    invoke-virtual {p1, v3}, Lorg/json/JSONObject;->optInt(Ljava/lang/String;)I

    move-result v1

    .line 774
    .local v1, "upTimes":I
    const-string v3, "is_digg"

    invoke-virtual {p1, v3}, Lorg/json/JSONObject;->optBoolean(Ljava/lang/String;)Z

    move-result v0

    .line 775
    .local v0, "isDigg":Z
    iget-object v3, p0, Lcom/brixd/niceapp/activity/BaseDetailActivity$19$1;->val$commentModel:Lcom/brixd/niceapp/model/CommentModel;

    invoke-virtual {v3, v1}, Lcom/brixd/niceapp/model/CommentModel;->setUpTimes(I)V

    .line 776
    iget-object v3, p0, Lcom/brixd/niceapp/activity/BaseDetailActivity$19$1;->val$commentModel:Lcom/brixd/niceapp/model/CommentModel;

    invoke-virtual {v3, v0}, Lcom/brixd/niceapp/model/CommentModel;->setDigg(Z)V

    .line 778
    iget-object v2, p0, Lcom/brixd/niceapp/activity/BaseDetailActivity$19$1;->val$view:Landroid/view/View;

    check-cast v2, Landroid/widget/TextView;

    .line 779
    .local v2, "upTimesTxt":Landroid/widget/TextView;
    if-eqz v2, :cond_39

    .line 780
    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    iget-object v4, p0, Lcom/brixd/niceapp/activity/BaseDetailActivity$19$1;->val$commentModel:Lcom/brixd/niceapp/model/CommentModel;

    invoke-virtual {v4}, Lcom/brixd/niceapp/model/CommentModel;->getUpTimes()I

    move-result v4

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v3

    const-string v4, ""

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 783
    :cond_39
    if-eqz v0, :cond_4f

    const v3, 0x7f02008e

    :goto_3e
    invoke-virtual {v2, v3, v5, v5, v5}, Landroid/widget/TextView;->setCompoundDrawablesWithIntrinsicBounds(IIII)V

    .line 785
    iget-object v3, p0, Lcom/brixd/niceapp/activity/BaseDetailActivity$19$1;->this$1:Lcom/brixd/niceapp/activity/BaseDetailActivity$19;

    iget-object v3, v3, Lcom/brixd/niceapp/activity/BaseDetailActivity$19;->this$0:Lcom/brixd/niceapp/activity/BaseDetailActivity;

    # getter for: Lcom/brixd/niceapp/activity/BaseDetailActivity;->mDelayHandler:Lcom/brixd/niceapp/util/RequestDelayHandler;
    invoke-static {v3}, Lcom/brixd/niceapp/activity/BaseDetailActivity;->access$1900(Lcom/brixd/niceapp/activity/BaseDetailActivity;)Lcom/brixd/niceapp/util/RequestDelayHandler;

    move-result-object v3

    iget-object v4, p0, Lcom/brixd/niceapp/activity/BaseDetailActivity$19$1;->val$view:Landroid/view/View;

    invoke-virtual {v3, v4}, Lcom/brixd/niceapp/util/RequestDelayHandler;->endRequest(Ljava/lang/Object;)V

    .line 786
    return-void

    .line 783
    :cond_4f
    const v3, 0x7f02008d

    goto :goto_3e
.end method
